<template>
	<view class="mainPage content" :style="{'padding-top': `${$store.state.safeArea.top || 0}px`, 'padding-bottom': `${$store.state.safeArea.bottom || 0}px`}">
		<public-head :title="title"></public-head>
		<view class="records" v-if="recordlist.length">
			<view class="record" v-for="(item,index) in recordlist" :key="index">
				<view class="box">
					<!-- <view class="title">提现</view> -->
					<view class="title2">{{item.status==0?'审核中':item.status==1?'审核通过':item.status==2?'审核失败':''}}</view>
					<view class="money">￥{{item.cas_money}}</view>
				</view>
				<view class="box2">
					<view class="title">技术服务费</view>
					<view class="money">￥{{item.ser_money}}</view>
				</view>
				<view class="remarks" v-if="item.status==2">失败原因:{{item.remarks}}</view>
				<view class="time">{{item.time}}</view>
			</view>
		</view>
		<view class="img" v-else>
			<image src="https://swl-1304532176.cos.ap-guangzhou.myqcloud.com/chongesheng_doctor/icon/qian.png"></image>
			<text>暂无提现记录</text>
		</view>
	</view>
</template>
<script>
var that
import publicHead from "@/components/publicHead/publicHead.vue"
export default {
	components: {
		publicHead
	},
	data() {
		return {
			title: "提现记录",
			status: 0,
			recordlist: ''
		}
	},
	onLoad() {
		that = this
		that.record()
	},
	methods: {
		record() {
			that.$postAjax1('PetDoctor_Center_transferinfo', {
			}, function (data) {
				that.recordlist = data.data.data

				console.log('提现明细页面')
			})
		}
	}
}
</script>
<style scoped lang="scss">
.content {
	width: 100vw;
	min-height: 100vh;
	background: #f6f6f6;
	.records {
		padding: 50rpx;
		.record {
			margin-bottom: 30rpx;
			background: #ffffff;
			box-shadow: 0px 4px 8px 0px rgba(97, 123, 185, 0.07);
			border-radius: 16rpx;
			border: 2rpx solid rgba(255, 121, 0, 0.1);
			.box {
				padding: 30rpx;
				border-bottom: 1rpx #f1f1f1 solid;
				.title {
					text-align: left;
					display: inline-block;
					// width: 10%;
				}
				.title2 {
					text-align: left;
					display: inline-block;
					width: 50%;
					color: red;
					font-size: 30rpx;
					font-weight: 400;
				}
				.money {
					text-align: right;
					display: inline-block;
					width: 50%;
					color: #ed0b0d;
				}
			}
			.box2 {
				padding: 30rpx;
				.title {
					text-align: left;
					display: inline-block;
					width: 50%;
					color: #848181;
					font-size: 28rpx;
				}
				.money {
					text-align: right;
					display: inline-block;
					width: 50%;
				}
			}
			.remarks {
				padding: 0 30rpx 30rpx 30rpx;
				text-align: left;
				color: #959595;
				font-size: 25rpx;
			}
			.time {
				padding: 0 30rpx 30rpx 30rpx;
				text-align: left;
				color: #bfbcbc;
				font-size: 24rpx;
			}
		}
	}
	.img {
		padding-top: 300rpx;
		text-align: center;
		image {
			margin: auto;
			display: block;
			width: 156rpx;
			height: 156rpx;
			margin-bottom: 30rpx;
		}
		text {
			font-size: 26rpx;
			font-weight: 400;
			color: #6b6b6b;
			line-height: 36rpx;
		}
	}
}
</style>
